package data;

import org.jboss.netty.buffer.ChannelBuffer;

import com.mongodb.BasicDBObject;

public class SGTask {
	public static void readToDBObject(ChannelBuffer buf, BasicDBObject db) {
	    db.put("taskType", buf.readInt());
	    db.put("taskID", buf.readInt());
	    db.put("hasAccepted", buf.readByte());
	    db.put("hasFinished", buf.readByte());
	    db.put("awardClaimed", buf.readByte());
	    db.put("currentValue", buf.readInt());
	}
}
